﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="delete_room.aspx.cs" Inherits="delete_room" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div align="center">

    <br />
    <br />
    <img src="Image/delete-room.png" alt=""/><br /><br />

    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" 
        AutoGenerateColumns="False" DataKeyNames="ROOM_NO" SelectedIndex="0" 
        AllowPaging="True" AllowSorting="True" ForeColor="#FFCC66" 
        BorderColor="#4A1106" PageSize="20" >
        <Columns>
            <asp:TemplateField HeaderText="Select">
                <ItemTemplate>
                    <asp:CheckBox ID="check_box_delete" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ROOM_NO" HeaderText="ROOM_NO" ReadOnly="True" 
                SortExpression="ROOM_NO" />
            <asp:BoundField DataField="ROOM_TYPE_NAME" HeaderText="ROOM_TYPE_NAME" 
                SortExpression="ROOM_TYPE_NAME" />
            <asp:BoundField DataField="STATUS" HeaderText="STATUS" 
                SortExpression="STATUS" />
            <asp:BoundField DataField="GUEST_ID" HeaderText="GUEST_ID" 
                SortExpression="GUEST_ID" />
        </Columns>
        <HeaderStyle BackColor="#993300" />
        <PagerStyle HorizontalAlign="Center" />
        <RowStyle HorizontalAlign="Center" />
    </asp:GridView>
    <asp:Button ID="Button_Delete" runat="server" Text="DELETE" 
        onclick="Button_Delete_Click" BackColor="#FFCC66" BorderColor="#FF9966" 
        Height="25px" Width="85px" />
        &nbsp;
            <asp:Button ID="Button5" runat="server" BackColor="#FFCC66" 
                BorderColor="#FF9966" Height="25px" onclick="Back_Click" Text="&lt;&lt; Back" 
                Width="85px" />
        <br />
    <asp:Label ID="Label1" runat="server" Text=""/>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString18 %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString18.ProviderName %>" 
        SelectCommand="SELECT ROOMS.ROOM_NO, ROOM_DETAIL.ROOM_TYPE_NAME, ROOMS.STATUS, ROOMS.GUEST_ID FROM ROOMS INNER JOIN ROOM_DETAIL ON ROOMS.ROOM_TYPE_ID = ROOM_DETAIL.ROOM_TYPE_ID"></asp:SqlDataSource>
 </div>
</asp:Content>

